﻿using decode.Model;

namespace decode
{
    internal class Program
    {
        /// <summary>
        /// 用维吉尼亚法加密
        /// </summary>
        /// <param name="args"></param>
        static void Main(string[] args)
        {
            //输入明文，密钥，再根据通过函数来加密
            Console.Write("输入明文");
           string plaintext=Console.ReadLine();
            //输入密钥
            Console.Write("输入密钥");
            string key=Console.ReadLine();
            //构造函数来赋初值
            Code code = new Code(plaintext, key);
            //调用类函数来输出密文
            code.encrypt();
          

        }
    }
}